import { RouterModule, Routes } from '@angular/router';
import { HomeComponent } from './pages/home/home.component';
import { NgModule } from '@angular/core';
import { PluginsComponent } from './pages/plugins/plugins.component';
import { LoginComponent } from './modules/login/login.component';
import { ForgotPasswordPageComponent } from './modules/forgot-password-page/forgot-password-page.component';
import { AdminPageComponent } from './pages/admin-page/admin-page.component';
import { AddPluginsComponent } from './pages/admin-page/add-plugins/add-plugins.component';
import { AddAdminComponent } from './pages/admin-page/add-admin/add-admin.component';
import { EditPluginsComponent } from './pages/edit-plugins/edit-plugins.component';
import { EditUserComponent } from './pages/edit-user/edit-user.component';

export const routes: Routes = [
    {
        path: '',
        component: HomeComponent
    },
    {
        path: 'login',
        component: LoginComponent
    },
    {
        path: 'plugins',
        component: PluginsComponent
    },
    {
        path: 'forgot-password',
        component: ForgotPasswordPageComponent
    },
    {
        path: 'admin-page',
        component: AdminPageComponent
    },
    {
        path: 'add-plugins',
        component: AddPluginsComponent
    },
    {
        path: 'add-admin',
        component: AddAdminComponent
    },
    {
        path: 'admin-page/plugin/:plugin_id',
        component: EditPluginsComponent
    },
    {
        path: 'admin-page/user/:user_id',
        component: EditUserComponent
    },
];
@NgModule({
    imports: [RouterModule.forRoot(routes),],
    exports: [RouterModule]
  })
  export class AppRoutingModule { }